import React from 'react';
import { connect } from 'dva';
import PageContent from '../../../components/PageContent';
import SprintAnalysisTable from './SprintAnalysisTable';

@connect(({ analysis, loading }) => ({ analysis, loading: loading.models.analysis }))
class SprintAnalysis extends React.Component {
  render() {
    const { dispatch, loading, analysis: { sprintAnalysis } } = this.props;
    const TableProps = {
      dispatch,
      loading,
      sprintAnalysis,
    };
    return (
      <PageContent title="sprint需求变更统计">
        <SprintAnalysisTable {...TableProps} />
      </PageContent>
    );
  }
}

export default SprintAnalysis;
